from_text

pure static function from_text(value: text): big_integer

Parse a signed base-10 text representation of an integer.

Since

0.12.0

Parameters

value

the text to parse

Throws

exception

if the text is ill-formed


pure static function from_text(value: text, radix: integer): big_integer

Parse a signed text representation of an integer. The integer is interpreted in the specified radix (from 2 to 36 inclusive).

Since

0.12.0

Parameters

value

the text to parse

radix

the radix with which to interpret value

Throws

exception

when

  • the text is ill-formed

  • the radix is outside the supported range